﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SelecionarEndereco.aspx.cs"
    Inherits="Ecommerce.Web.SelecionarEndereco" %>
<%@ Register Tagprefix="ctrlBox" Tagname="ctrlProgressoCheckout" Src="~/UserControl/ProgressoCheckout.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../Scripts/jquery.maskedinput-1.3.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $("#<%=txtNumero.ClientID%>").mask('9?99999', { placeholder: " " });
        $("#<%=txtCep.ClientID%>").mask('99999-999', { placeholder: " " });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="TopoContent" runat="server">
    <div class="tit_tela">
        Endereço de Entrega
    </div>
    <div class="btn_prosseguir">
        <div class="txt_menu_c">
            <asp:LinkButton ID="lbProsseguir" runat="server" CausesValidation="false" onclick="lbProsseguir_Click">Prosseguir com a compra</asp:LinkButton>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="miolo_carrinho_b">
        <div class="miolo_box_carrinho_inf_b">

            <div class="box_checkout">

                <div class="box_passos">
                    <div class="txt_box_passos">
                        Endereço(s) Cadastrado(s)
                    </div>
                </div>
                <asp:RadioButtonList ID="rbEnderecos" runat="server" RepeatDirection="Vertical" 
                    RepeatLayout="Table" AutoPostBack="True" CssClass="txt_corpo_info"
                    onselectedindexchanged="rbEnderecos_SelectedIndexChanged">
                </asp:RadioButtonList>
                <br />
                <div class="box_passos">
                    <div class="txt_box_passos">
                        Endereço de Entrega
                    </div>
                </div>
                <div class="box_formulario">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="20" style="width:350px;">
                                Estado:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*"
                                    ControlToValidate="ddUf"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Cidade:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtCidade"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="39">
                                <asp:DropDownList ID="ddUf" runat="server" CssClass="combobox"></asp:DropDownList>
                            </td>
                            <td class="box_medio">
                                <asp:TextBox ID="txtCidade" runat="server" CssClass="box_medio_txt" MaxLength="100"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="20" colspan="2">
                                Endereço:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtEndereco"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="39" colspan="2" class="box_grande">
                                <asp:TextBox ID="txtEndereco" runat="server" CssClass="box_grande_txt" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="22">
                                Bairro:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtBairro"></asp:RequiredFieldValidator>
                            </td>
                            <td>
                                Número:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtNumero"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td height="38" class="box_medio">
                                <asp:TextBox ID="txtBairro" runat="server" CssClass="box_medio_txt" MaxLength="200"></asp:TextBox>
                            </td>
                            <td class="box_medio">
                                <asp:TextBox ID="txtNumero" runat="server" CssClass="box_medio_txt" MaxLength="6"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td height="20">
                                CEP:
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="*"
                                    ControlToValidate="txtCep"></asp:RequiredFieldValidator>
                            </td>
                            <td>Complemento:</td>
                        </tr>
                        <tr>
                            <td height="45" class="box_medio">
                                <asp:TextBox ID="txtCep" runat="server" CssClass="box_medio_txt" MaxLength="9"></asp:TextBox>
                            </td>
                            <td class="box_medio">
                                <asp:TextBox ID="txtComplemento" runat="server" CssClass="box_medio_txt" MaxLength="200"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <table>
                        <tr>
                            <td style="height:50px;">

                                <asp:Button ID="btnProsseguir" runat="server" CssClass="btn_prosseguir_2" 
                                    Text="Prosseguir com a compra" onclick="btnProsseguir_Click" />
                                <asp:Button ID="btnAdicionarItem" runat="server" CssClass="bt_adicionar_2" 
                                    Text="Adicionar" onclick="btnAdicionarItem_Click" />
                            </td>
                            
                        </tr>
                    </table>
                </div>
            </div>

            <div class="box_info_checkout">
                <div class="box_info_checkout_tit">
                    Progresso do Checkout
                </div>
                <div class="box_info_checkout_conteudo">
                    <ctrlBox:ctrlProgressoCheckout ID="ctrlProgressoCheckout" runat="server" />
                </div>
            </div>
        </div>
    </div>
</asp:Content>
